Automattic\WooCommerce\Admin\API\Reports\Stock\Controller S

Total Complexity 38
Dependencies 3
Dependents 0
Total lines 550
Lines of code 377
Logical lines of code 139
Comment lines 121
Methods 14
Properties 2

Methods 14

Method Rating Maintainability Complexity Lines of code
prepare_reports_query()
S
50 6 27
get_items()
S
46 5 37
get_collection_params()
S
38 1 92
add_wp_query_orderby()
S
54 5 20
add_wp_query_filter()
S
51 3 32
prepare_links()
S
53 3 28
get_item_schema()
S
44 1 53
prepare_item_for_response()
S
53 3 21
add_wp_query_join()
S
61 3 12
get_products()
S
57 2 16
append_product_sorting_table_join()
S
67 2 7
add_wp_query_group_by()
S
69 2 7
prepare_item_for_export()
S
62 1 13
get_export_columns()
S
62 1 12